package com.example.hotel.dao;

import com.example.hotel.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DishDao {
    //增加菜品
    int addDish(Dish d);
    int deleteDish(int dishId);
    int updateDishPrice(@Param("dishId") int dishId, @Param("price")double price);
    //查看所有菜品
    List<Dish> getAllDish();

}
